import { http } from "@/utils/http/axios";

export function getPageList(params = {}) {
	return http.request<API.Response.BasicResponse>(
		{
			url: "/monitor/online/list",
			method: "GET",
			params
		},
		{
			isTransformResponse: false
		}
	);
}
// 强退用户
export function forceLogout(tokenId: string) {
	return http.request<API.Response.BasicResponse>({
		url: `/monitor/online/${tokenId}`,
		method: "DELETE"
	});
}
